package com.rxyb.security.gate.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

/**
 * @author YJH
 * @version 1.0
 * @description
 * @date 2020/7/10 17:33
 */
@Controller
@Slf4j
public class RoleController {


    /**
     * 增加
     *
     * @param m 模态
     * @return
     */
    @RequestMapping(value = "/addRole")
    public ModelAndView addRole(ModelAndView m) {
        m.setViewName("role/add");
        return m;
    }


    /**
     *  list
     * @return
     */
    @RequestMapping(value = "/roleList")
    public String adminRole() {
        return "role/list";
    }

}
